import request from '@/utils/request'

// 查询房间订单列表
export function listRoomOrder(query) {
  return request({
    url: '/system/roomOrder/list',
    method: 'get',
    params: query
  })
}

// 查询房间订单详细
export function getRoomOrder(id) {
  return request({
    url: '/system/roomOrder/' + id,
    method: 'get'
  })
}

// 新增房间订单
export function addRoomOrder(data) {
  return request({
    url: '/system/roomOrder',
    method: 'post',
    data: data
  })
}

// 修改房间订单
export function updateRoomOrder(data) {
  return request({
    url: '/system/roomOrder',
    method: 'put',
    data: data
  })
}

// 删除房间订单
export function delRoomOrder(id) {
  return request({
    url: '/system/roomOrder/' + id,
    method: 'delete'
  })
}
